-
Notifications
You must be signed in to change notification settings - Fork 76
Add warnings to deprecated OBJ API usage #410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add warnings to deprecated OBJ API usage #410
Conversation
@@ -463,8 +465,14 @@ def access(self, cluster, bucket_name, permissions): | |||
} | |||
|
|||
|
|||
@deprecated( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we need to deprecate the cluster-view, I assume that we want to deprecate the ObjectStorageCluster
class. I'm also wondering if we should move the function buckets_in_cluster from here to the obj_storage
group.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's a good idea 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice thanks for updating this
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
import warnings
def deprecated_feature():
warnings.warn("deprecated", DeprecationWarning) Never mind, now I think |
There will also be a deprecated decorator the standard library of Python 3.13, but we probably can't use it during these years since it's not available in earlier versions of Python. |
* Add warnings to deprecated OBJ API usage (#410) * add deprecated * add dependency * fix deprecated * Update OBJ Group and Objects for MultiCluster Object Storage API Changes (#426) --------- Co-authored-by: Ye Chen <[email protected]>
📝 Description
Add warnings in docs and to related functions to deprecate two endpoints: cluster-view and cluster-list.